
//基本设置
export const base = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./base').default);
  });
};

//首页
export const home = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./home').default);
  });
};

//列表
export const list = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./list').default);
  });
};

//添加
export const add = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./add').default);
  });
};

//编辑
export const edit = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./edit').default);
  });
};

//分类
export const classList = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./classList').default);
  });
};

//分类添加
export const classAdd = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./classAdd').default);
  });
};

//分类编辑
export const classEdit = (location, cb) => {
  require.ensure([], require => {
    cb(null, require('./classEdit').default);
  });
};
